package com.demo.jingxi.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName jx_stock
 */
@TableName(value ="jx_stock")
@Data
public class JxStock implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 商品名称
     */
    private String pdname;
    private Integer number;

    /**
     * 商品来源编号
     */
    private Integer pdorigiinid;

    /**
     * 商品库存
     */
    private Integer pdcount;

    /**
     * 商品售价
     */
    private Integer pdpriece;
   private  Integer isdeleted;
    /**
     * 商品图片
     */
    private String img;

    /**
     * 入库时间
     */
    private Date createdTime;

    /**
     * 出库时间
     */
    private Date updatedTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        JxStock other = (JxStock) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPdname() == null ? other.getPdname() == null : this.getPdname().equals(other.getPdname()))
            && (this.getPdorigiinid() == null ? other.getPdorigiinid() == null : this.getPdorigiinid().equals(other.getPdorigiinid()))
            && (this.getPdcount() == null ? other.getPdcount() == null : this.getPdcount().equals(other.getPdcount()))
            && (this.getPdpriece() == null ? other.getPdpriece() == null : this.getPdpriece().equals(other.getPdpriece()))
            && (this.getImg() == null ? other.getImg() == null : this.getImg().equals(other.getImg()))
            && (this.getCreatedTime() == null ? other.getCreatedTime() == null : this.getCreatedTime().equals(other.getCreatedTime()))
            && (this.getUpdatedTime() == null ? other.getUpdatedTime() == null : this.getUpdatedTime().equals(other.getUpdatedTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPdname() == null) ? 0 : getPdname().hashCode());
        result = prime * result + ((getPdorigiinid() == null) ? 0 : getPdorigiinid().hashCode());
        result = prime * result + ((getPdcount() == null) ? 0 : getPdcount().hashCode());
        result = prime * result + ((getPdpriece() == null) ? 0 : getPdpriece().hashCode());
        result = prime * result + ((getImg() == null) ? 0 : getImg().hashCode());
        result = prime * result + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode());
        result = prime * result + ((getUpdatedTime() == null) ? 0 : getUpdatedTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", pdname=").append(pdname);
        sb.append(", pdorigiinid=").append(pdorigiinid);
        sb.append(", pdcount=").append(pdcount);
        sb.append(", pdpriece=").append(pdpriece);
        sb.append(", img=").append(img);
        sb.append(", createdTime=").append(createdTime);
        sb.append(", updatedTime=").append(updatedTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}